

import 'package:bt_tool/basic/bt_model.dart';
import 'package:get/get.dart';

class ProjectModel extends BTModel{

  int id = 0;
  String name = "";
  int createTime = 0;
  String translateConfig = "";
  String translateKey = "";
  var translateExportType = 0.obs;

  ProjectModel(super.oriJsonData);

  @override
  Map<String, dynamic> convertToDict() {
    var map = super.convertToDict();
    map["id"] = id;
    map["name"] = name;
    map["createTime"] = createTime;
    map["translateConfig"] = translateConfig;
    map["translateKey"] = translateKey;
    map["translateExportType"] = translateExportType.value;
    return map;
  }

  @override
  void parse() {
    id = jsonTool.getInt("id");
    name = jsonTool.getString("name");
    createTime = jsonTool.getInt('createTime');
    translateConfig = jsonTool.getString("translateConfig");
    translateKey = jsonTool.getString("translateKey");
    translateExportType.value = jsonTool.getInt("translateExportType");
  }



}